﻿using System.Collections.Generic;
using LoverMeeting.Core;
using LoverMeeting.Model.Entity;
using LoverMeeting.Model.Repository;

namespace Application
{
    public class LoverDataAppService
    {
        public IList<Gender> ListGender()
        {
            var repository = ServiceLocatorFactory.CreateInstance<IGenderRepository>();
            return repository.ReadList();
        }
        
        public IList<DesiredGender> ListDesiredGender()
        {
            var repository = ServiceLocatorFactory.CreateInstance<IDesiredGenderRepository>();
            return repository.ReadList();
        }

        public IList<LoverHeight> ListLoverHeight()
        {
            var repository = ServiceLocatorFactory.CreateInstance<ILoverHeightRepository>();
            return repository.ReadList();
        }

        public IList<LoverWeight> ListLoverWeight()
        {
            var repository = ServiceLocatorFactory.CreateInstance<ILoverWeightRepository>();
            return repository.ReadList();
        }

        public IList<MaritalStatus> ListMaritalStatus()
        {
            var repository = ServiceLocatorFactory.CreateInstance<IMaritalStatusRepository>();
            return repository.ReadList();
        }

        public IList<RelationshipType> ListRelationshipType()
        {
            var repository = ServiceLocatorFactory.CreateInstance<IRelationshipTypeRepository>();
            return repository.ReadList();
        }
    }
}
